/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


function Incident(machine, date, type, content, resolve){
    this.machine = machine;
    this.date = date;
    this.type = type;
    this.content = content;
    this.resolve = resolve;
    this.id = null;
    
    this.getId = function(){
        return this.id;
    };
    this.setId = function(id){
        this.id = id;
    };
    this.getDate = function(){
        return this.date;
    };
    this.setDate = function(date){
        this.date = date;
    };
    this.getMachine = function(){
        return this.machine;
    };
    this.setMachine = function(machine){
        this.machine = machine;
    };
    this.getType = function(){
        return this.type;
    };
    this.setType = function(type){
        this.type = type;
    };
    this.getContent = function(){
        return this.content;
    };
    this.setContent = function(content){
        this.content = content;
    };
    this.getResolve = function(){
        return this.resolve;
    };
    this.setResolve = function(resolve){
        this.resolve = resolve;
    };
    
    this.loadJson = function(json){
        this.machine = new Machine("","",0,0);
        this.machine.loadJson(json["machine"])
        this.type = json["type"];
        this.content = json["content"];
        this.date = json["date"];
        this.resolve = json["resolve"];
    };
}